package cc.momas.momall.sso.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cc.momas.common.utils.E3Result;
import cc.momas.momall.service.IUserService;

@Controller
public class UserController {

	@Autowired
	private IUserService userSvc;
	
	@RequestMapping(value="/user/check/{param}/{type}")
	@ResponseBody
	public E3Result checkData(@PathVariable String param,@PathVariable Integer type) {
		E3Result e3Result = userSvc.checkData(param, type);
		return e3Result;
	}
}
